<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员注册-{$config[cfg_webname]}</title>
<script type="text/javascript" src="{$BASE}js/tools.js"></script>
<link href="{$BASE_V}css.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function chkRegform(){	
	if($('password').value == ""){
	   alert('请输入密码!');	   
	   $('password').focus();
	   return(false);
    } else {
	    var a = $('password').value;
		if (a.length==trim(a).length && (trim(a).length<5 || trim(a).length>17)){
			alert('密码格式有误！');
			$('password').focus();
  		    return(false);
		}  
    }
   
	if($('password1').value == ""){
	   alert('请输入确认密码!');	   
	   $('password1').focus();
	   return(false);
    } else {
	    var a = $('password1').value;
		if (a.length==trim(a).length && (trim(a).length<5 || trim(a).length>17)){
			alert('确认密码格式有误！');
			$('password1').focus();			
  		    return(false);
		}  
    }
	
	if($('password1').value != $('password').value){
		alert('两次密码不一样');
		$('password1').focus();			
  	    return(false);	
	}
		
	if($('question').value == ""){ 
	   alert('请填写密码保护问题!');	   
	   $('question').focus();
	   return(false);
    }
	if($('answer').value == ""){ 
	   alert('请填写密码保护答案!');	   
	   $('answer').focus();
	   return(false);
    }	

}


</script>
</head>

<body>
<!--{template inc/top}-->
<table width="940" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:15px">
  <tr>
    <!--{template inc/left}-->  
    <td width="731" valign="top">
    <div><img src="{$BASE_V}images/c_banner.gif" width="731" height="138" /></div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:15px">
        <tr>
          <td><img src="{$BASE_V}images/c_reg.gif" width="123" height="18" /></td>
          <td height="36" align="right" class="yellow12">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="2" style="border-top:1px dashed #b2b2b2">
	  <form name="modform" id="forms" action="{PHP_SELF}?m=user.save" method="post"  onSubmit="return chkRegform();">               
          <div id="spanreg"><span>用户名</span><input type="text" name="username" id="username" class="new_reg_input"/></div>
          <div id="spanreg"><span>密码</span><input type="password" name="password" id="password" class="new_reg_input"/></div>  
          <div id="spanreg"><span>确认密码</span><input type="password" name="password1" id="password1" class="new_reg_input"/></div>                    
          <div id="spanreg"><span>密码保护问题</span><input type="text" name="question" id="question" class="new_reg_input"/></div>  
          <div id="spanreg"><span>密码保护答案</span><input type="text" name="answer" id="answer" class="new_reg_input"/></div>  
          <div id="spanreg"><input type="submit" value="提交" style="margin-left:173px; margin-top:4px"/></div>
          </form>                              
          </td>
        </tr>
      </table>
      
      <div class="bai12" style="padding-top:50px; text-align:center">

      </div>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
